package com.squirrel.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * Banner 轮播图实体类
 * </p>
 *
 * @author 关远键
 * @since 2021/11/11 16:06
 */
@Data
@TableName("banner")
@ApiModel(value = "轮播图", description = "")
public class Banner extends Model<Banner> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("轮播图ID")
    @TableId(value = "banner_id", type = IdType.AUTO)
    private Integer bannerId;

    @ApiModelProperty("轮播图标题")
    @TableField("banner_title")
    private String bannerTitle;

    @ApiModelProperty("轮播图图片地址")
    @TableField("banner_image_url")
    private String bannerImageUrl;

    @ApiModelProperty("轮播图跳转地址")
    @TableField("banner_href")
    private String bannerHref;


    @Override
    public Serializable pkVal() {
        return this.bannerId;
    }

}
